
<div class="blog_bg"></div>
<div class="title_text"> <img src="<?php echo $this->IMAGE_KHT_PATH; ?>khotoot_title.png" alt="Khotoot Is A Digital Graphic Design Company" /> </div>


<div class="blog_container">
	
	<div class="recent_post">
		<div class="title_text">Recent Posts</div>
		<?php foreach($this->recentData as $_rkey =>$rvalue):?>
                <div class="recent_post_block">
                        <a href="<?php echo $this->url(array("module" => "default", "controller" => "blog", "action" => "blogdetail" ,"blog_id" => $rvalue['blog_id']), null, TRUE); ?>">
                        <span class="default_ico"><img src="<?php echo $this->IMAGE_KHT_PATH; ?>post_ico.png" alt="" /></span>
                        <span class="recent_post_title"><?php echo $rvalue['blog_title'];?></span>
                        <span class="recent_post_content"><?php echo substr($rvalue['blog_shortdescription'],0,200)." ...";?></span>
			</a>
                </div>
                <?php endforeach;?>
		
		
		
	</div>
	
	<div class="blog_listing">
	
            <?php 
            
            if(count($this->blogData) > 0):
            foreach($this->blogData as $key =>$value):
                ?>
		<div class="post_block">
			<div class="post_title"><?php echo $value['blog_title'];?></div>
			<div class="post_info">
				<div class="post_date"><?php echo date('M d , Y',strtotime($value['blog_createddate']));?></div>
				<div class="post_comment"><?php echo $value['comment_count'];?> Comments</div>
			</div>
			<div class="post_content">
                            <p><?php echo substr($value['blog_shortdescription'],0,500)." ...";?></p>
                                <a class="read_more" href="<?php echo $this->url(array("module" => "default", "controller" => "blog", "action" => "blogdetail" ,"blog_id" => $value['blog_id']), null, TRUE); ?>">read more</a>
			</div>
		</div>
		<?php 
                endforeach;
                else:?>
                <div class="post_block">
			<div class="post_title">No Blog Found</div>
		</div>
               <?php
                endif;?>
		
	</div>
	
	<div class="clear"></div>
	
</div>
<!-- End Blog Container -->

